#迁移脚本
from  flask_migrate import  MigrateCommand,Migrate
from  flask_script import  Manager

from  main import  app
from  models.users import db
# from  models.users import

# 控制器可以接受有命令行输入的命令
manager = Manager(app)
migrate = Migrate(app,db)
# 注册命令
manager.add_command('db',MigrateCommand)

if __name__ == '__main__':
    manager.run()
